package com.nlp.trie.viterbi;

import java.util.HashMap;

public class StateTable {

	HashMap<String, State> table;
	
	public StateTable() {
		table = new HashMap<String, State>();
	}
	public State get(String s) {
		s = s.toLowerCase();
		State st = table.get(s);
		if (st == null) {
			st = new State(s);
			table.put(s, st);
		}
		return st;
	}
	
}
